export async function get_json<T>(url: string): Promise<T> {
    let res = await fetch(url, { method: 'GET' })
    let json = await res.json()
    return json as T
}

export async function get(url: string): Promise<string> {
    let res = await fetch(url, { method: 'GET' })
    let text = await res.text()
    return text
}